package com.test.cordova.citylist.common;


import com.test.cordova.citylist.bean.City;

import java.util.Comparator;

/**
 * 比较拼音排序
 */

public class PinyinComparator implements Comparator <City>{
    @Override
    public int compare(City city1, City city2) {
        return city1.getCityPinyin().compareTo(city2.getCityPinyin());
    }
}
